<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程管理</title>
    <link rel="stylesheet" href="../static/css/header.css" type="text/css">
    <link rel="stylesheet" href="../static/css/stuIndex.css" type="text/css">
    <script src="../static/js/stuSelect.js"></script>
</head>
<body>
<div class="header">
    <div class="header-title">
        <div class="header-title-logo">
        </div>
        <div class="header-title-body">
            <h2>教务管理系统</h2>
        </div>
        <div class="header-title-quit">
            <a href="/login">安全退出</a>
        </div>
        <div class="header-title-person">
            <a href="">
                <img id="person-img" th:title="${userID}" src="../static/images/a0.jpg"/>
            </a>
        </div>
    </div>
</div>
<div class="student-title-search">
    <div class="stu-title-search">
        <input id="stu-search-text" type="text" placeholder="请输入搜索关键字"/>
        <div onclick="toHeader()">
            搜索
        </div>
    </div>
</div>
<div class="student-result-main">
    <div class="stu-select-result">
        <table id="stu-search-result">
            <thead>
            <tr>
                <th>课程ID</th>
                <th>课程名称</th>
                <th>课程时间</th>
                <th>课程教室</th>
                <th>课程容量</th>
                <th>已选人数</th>
                <th></th>
            </tr>
            </thead>
            <tbody id="select-result-tbody">
            <tr th:each="course,teacher:${courseList}">
                <td th:text="${course.getCourseID()}"></td>
                <td th:text="${course.getCourseName()}"></td>
                <td th:text="${course.getCourseDate()}" th:id="'stu-select-date'+${course.getCourseID()}"></td>
                <td th:text="${course.getCourseRoom()}"></td>
                <td th:text="${course.getCourseNums()}"></td>
                <td th:text="${course.getSelectNums()}" ></td>
                <td><a th:href="'/ClassUpdate'+${course.getCourseID()}">
                    <button>编辑</button></a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>